package com.iiapk.gridnew.fragment;

import java.util.List;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.iiapk.gridnew.domain.Article;
import com.iiapk.gridnew.view.NewsPanel1;

public class NewsPanelFragment extends Fragment {
	
	private List<Article> dataSource;
	private NewsPanel1 newsPanel;
	
	public NewsPanelFragment(List<Article> list) {
		super();
		dataSource=list;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
		newsPanel = new NewsPanel1(inflater.getContext(),dataSource);
		return newsPanel;
	}

}